package esim.service.entity;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @Author: wbb
 * @Date: 2021/4/19 15:11
 */
@Getter
@Setter
public class InvoiceInfo {
    @NotBlank(message = "发票抬头不能为空")
    private String title;
    //@NotBlank(message = "纳税人识别号不能为空")
    private String taxpayerNumber;
    /**
     * 购货方企业类型 01：企业 ，02：机关事业单位， 03：个人 ，04：其它
     */
    @NotBlank(message = "企业类型不能为空")
    private String orgType;
    private String phone;

    @Email(message = "邮件地址格式不正确")
    private String email;

    private String ghfDZ;   //购货方地址
    private String ghfGDDH; //购货方固定电话
    private String ghfYH;  //购货方银行
    private String ghfZH;  //购货方账号

    @NotEmpty(message = "至少选择一个订单进行开票")
    private List<Integer> orderIds;
}
